/**
 * Created by 熊猫 on 2017/11/9.
 */
window.onload=function(){
        var queryForm=document.getElementById("query_form");
        var trainNum=document.getElementById("trainNum");
        var firstStation=document.getElementById("firstStation");
        var lastStation=document.getElementById("lastStation");
        var checkdiv=document.getElementById("checkdiv");
        queryForm.onsubmit=function(){
                if(trainNum.value==""){
                    alert("请输入车次！")
                    return false;
                }
                if(firstStation.value==""){
                    alert("请输入请输入始发站！");
                    return false;
                }
                if(lastStation.value==""){
                    alert("请输入请输入目的地！");
                    return false;
                }
                return true;

        }

    }

